package com.liang.pojo;

import java.util.Date;
import java.util.List;

public class Orders {
	private int oid;
	private String orderTime;
	private double total;
	private int state;
	private String address;
	private int uid;
	private List<OrderItem> orderItems;
	public Orders() {
		super();
	}
	public Orders(int oid, String orderTime, double total, int state, String address, int uid,
			List<OrderItem> orderItems) {
		super();
		this.oid = oid;
		this.orderTime = orderTime;
		this.total = total;
		this.state = state;
		this.address = address;
		this.uid = uid;
		this.orderItems = orderItems;
	}
	@Override
	public String toString() {
		return "Orders [oid=" + oid + ", orderTime=" + orderTime + ", total=" + total + ", state=" + state
				+ ", address=" + address + ", uid=" + uid + ", orderItems=" + orderItems + "]";
	}
	public int getOid() {
		return oid;
	}
	public void setOid(int oid) {
		this.oid = oid;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	public double getTotal() {
		return total;
	}
	public void setTotal(double total) {
		this.total = total;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public List<OrderItem> getOrderItems() {
		return orderItems;
	}
	public void setOrderItems(List<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}
}
